package com.eshop.model;

import java.math.BigDecimal;

public class OrderDetail {
    private int odetail_id;
    private int order_id;
    private int goods_id;
    private String odetail_name;
    private BigDecimal odetail_price;
    private int odetail_num;
    private String odetail_pic;

    public OrderDetail() {
    }

    public OrderDetail(int odetail_id, int order_id, int goods_id, String odetail_name, BigDecimal odetail_price, int odetail_num, String odetail_pic) {
        this.odetail_id = odetail_id;
        this.order_id = order_id;
        this.goods_id = goods_id;
        this.odetail_name = odetail_name;
        this.odetail_price = odetail_price;
        this.odetail_num = odetail_num;
        this.odetail_pic = odetail_pic;
    }

    public int getOdetail_id() {
        return odetail_id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public String getOdetail_name() {
        return odetail_name;
    }

    public BigDecimal getOdetail_price() {
        return odetail_price;
    }

    public int getOdetail_num() {
        return odetail_num;
    }

    public String getOdetail_pic() {
        return odetail_pic;
    }

    public void setOdetail_id(int odetail_id) {
        this.odetail_id = odetail_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public void setOdetail_name(String odetail_name) {
        this.odetail_name = odetail_name;
    }

    public void setOdetail_price(BigDecimal odetail_price) {
        this.odetail_price = odetail_price;
    }

    public void setOdetail_num(int odetail_num) {
        this.odetail_num = odetail_num;
    }

    public void setOdetail_pic(String odetail_pic) {
        this.odetail_pic = odetail_pic;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "odetail_id=" + odetail_id +
                ", order_id=" + order_id +
                ", goods_id=" + goods_id +
                ", odetail_name='" + odetail_name + '\'' +
                ", odetail_price=" + odetail_price +
                ", odetail_num=" + odetail_num +
                ", odetail_pic='" + odetail_pic + '\'' +
                '}';
    }
}
